<template>
  <van-list :finished="finished" finished-text="没有更多了">
    <van-cell v-for="item in list" :key="item" :title="item" 
    @click="chilckhistory(item)"/>
  </van-list>
</template>

<script>
export default {
  props: ["list"],
  data() {
    return {
      finished: true
    };
  },
  methods: {
    chilckhistory(item) {
      console.log(item);
      this.$store.dispatch("AsyncChangeProductArr", { keyword: item });
      this.$emit("setneiku", 3);
    }
  }
};
</script>

<style>
</style>